package com.buydeem.builder;

/**
 * 汽车构造者
 *
 * @author zengchao
 * @date 2022-04-25 14:34:34
 */
public abstract class CarBuilder {

    protected Car car = new Car();

    /**
     * 构建引擎
     */
    public abstract void buildEngine();

    /**
     * 构建底盘
     */
    public abstract void buildChassis();

    /**
     * 构建变速箱
     */
    public abstract void buildGearbox();

    /**
     * 构建轮胎
     */
    public abstract void buildTire();

    public Car getResult(){
        return car;
    }
}
